package com.shanshan.system.controller;


import com.shanshan.system.service.IPermissionService;
import com.shanshan.system.util.JwtUtil;
import com.shanshan.system.util.WebUtil;
import com.shanshan.system.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author shanshan
 * @since 2023-01-31
 */
@RestController
@RequestMapping("/system/permission")
@Api(tags = "菜单")
public class PermissionController {
    @Autowired
    private IPermissionService iPermissionService;
    @ApiOperation("获取所有的菜单")
    @GetMapping("/list")
    public Result sysMenuList(){
        return iPermissionService.sysMenuList();
    }
}
